/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.myorg.totoBD.gui.swing.components.dialog;

import org.myorg.totoBD.gui.swing.components.button.BtnCmdOk;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author user
 */
public class DlgBoxWarning extends DlgBoxAbs implements ActionListener{
    public DlgBoxWarning(String txtInfo){
         super(txtInfo);
         this.setTitle("Warnig box");
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() instanceof BtnCmdOk)
        {
            this.dispose();
        }
        else
        {
            super.actionPerformed(e);
        }
    }
}
